/*
 * @Author:
 * @Date: 2021-03-26 18:01:55
 * @Description: 表头筛选组件
 */
const renderTableHeaderFilter = function(h) {
  if (this.hasHeaderFilter) {
    return h(
      "el-popover",
      {
        props: {
          trigger: "click"
        },
        ref: "popover"
      },
      [
        h("el-tree", {
          props: {
            data: this.filterHeader,
            nodeKey: "prop",
            "default-checked-keys": this.defaultCheckedHeaderFilter,
            props: {
              children: "child"
            },
            "show-checkbox": true
          },
          on: {
            check: this.headerFilterCheck
          }
        }),
        h("i", {
          class: {
            "ele-table-header-filter_icon": true,
            "el-icon-arrow-down": true
          },
          slot: "reference"
        })
      ]
    );
  }
};
export default renderTableHeaderFilter;
